package com.wu.framework.upms.persistence.jpa;

import com.wu.framework.upms.domain.entity.UcUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UcUserJpaRepository extends JpaRepository<UcUser, Integer> {

    /**
     * description 根据租户ID和用户名称查询用户信息
     * @param
     * @return
     * @exception/throws
     * @author 吴佳伟
     * @date 2021/5/25 5:09 下午
     */
    UcUser getUcUserByTenantIdAndUserName(String tenantId,String userName);


    /**
     * description 根据用户名密码获取用户信息
     * @param
     * @return
     * @exception/throws
     * @author 吴佳伟
     * @date 2021/5/26 2:42 下午
     */
    UcUser getUcUserByUserNameAndPassword(String userName,String password);
}
